#include <bits/stdc++.h>
#define fi first
#define se second
using ll = long long;
using namespace std;
void solve()
{
    int n, x;
    cin >> n >> x;
    vector<int> a(n);
    for (auto &i : a)
        cin >> i;
    for (auto i : a)
    {
        if (i == x)
        {
            cout << "YES";
            return;
        }
    }
    cout << "NO";
}
int main()
{
    cin.tie(nullptr);
    cout.tie(nullptr);
    ios::sync_with_stdio(false);
    int T = 1;
    // cin>>T;
    while (T--)
    {
        solve();
    }
    return 0;
}